package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

//@Document(indexName = "user-infos")
@Data
public class UserInfo implements Serializable {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;

    //用户id
    private Long userId;

    //昵称
    //@Field(type = FieldType.Text)
    private String nick;

    //头像
    private String avatar;

    //性别
    private String gender;

    //生日
    private String birth;

    //@Field(type = FieldType.Date)
    private Date createTime;

    // @Field(type = FieldType.Date)
    private Date updateTime;

    //个性签名
    private String sign;

    /**
     * 如果是true，表示本用户被关注了，false表示没被关注
     */
    private Boolean followed;

}